package com.lxl.openfeign.client;

import com.lxl.openfeign.domain.po.UserPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import utils.Result;


/**
 * @Author: luoxianliang
 * @Email: 1322342586@qq.com
 * @CreateTime: 2025-08-19
 * @Description: 服务1的远程接口
 * @Version: 1.0
 * @OtherInfo:
 */

public class Sever1FeignClient {
    @FeignClient(value = "sever1")
    // FeignClient 接口
    public interface Server1FeignClient {
        @GetMapping("/hello")
        String hello();

        @GetMapping("/user/getUser")
        Result<UserPo> getUser();
    }


}

